package Problem;

//
// Created by ✎﹏ℳ๓独赏☆独醉 on 2024/1/25.
// 
public class 求和 {
    public static void main(String[] args) {
        int sum = 0;
        for (int i = 1; i <= 2019; i++) {
            String str = "";
            str = i + "";
            if(str.contains("0") || str.contains("1") || str.contains("2") || str.contains("9")){
                sum += i;
            }
        }
        System.out.println(sum);
    }
}
